Add

Function

This API is used to add license plate.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
MsgIdnull
PlateInfoJSON arrayAdd License Plates JSON show as follow Table Table 2

Table 2

ParameterRangeTypeDescription
MsgIdnull
Id1-15charactersstringLicense plate number, unique identification.
GrpIdintGroup ID
PlateColor0-5intLicense plate color, the possible values are as follows:
enum AIPlateColor_e {
APC_Blue = 0,// blue
APC_Green = 1,// green
APC_Yellow = 2, // yellow
APC_Black = 3,// black
APC_White = 4,// white
APC_Other = 5,// other
APC_Max
};
CarBrandstringCar brand
CarTypestringCar model
SexintOwner gender: 0-male, 1-female
Owner"Mike"stringOwner name
IdCode"415025199203050916"stringIdentification number
Job"Software"stringProfession
Phone"12345678902"stringTelephone number
Domicile"Guangdong,Zhuhai,Xiangzhou ..."stringLiving
Remark"Detail of this person ..."stringRemark
EnableChnAlarm[255, 255, 255, 255]arraySpecial permission control, which controls which channels the face is allowed to be used for alarming. It is used by bit. The bit position indicates that the corresponding channel allows alarming. If this field does not exist or is empty, it means that special permission control is not used.
VoicePromptsChn0~255intFile index, when there is no audio file, this pass 255
VoicePromptsSelarrayPlay channel, calculated by bit (bit0 is local, bit1 corresponds to front-end channel 1, bit2 corresponds to channel 2...)
VoicePromptsTmarrayTime period, there cannot be time conflicts among the 12 time periods

Sample:

POST API/AI/Plates/Add HTTP/1.1
{
    "version":"1.0",
    "data": {
        "PlateInfo": [
            {
                "Id": "粤CW2763",
                "GrpId": 6,
                "PlateColor": 0,
                "Sex": 1,
                "CarBrand": "大众",
                "CarType": "两厢车",
                "Owner": "张三",
                "IdCode": "12125180",
                "Job": "职业",
                "Phone": "15271859302",
                "Domicile": "居住地1",
                "Remark": "备注",
                "EnableChnAlarm": []
            },
            {
                "Id": "粤CK3961",
                "GrpId": 6,
                "PlateColor": 1,
                "Sex": 1,
                "CarBrand": "大众",
                "CarType": "三厢车",
                "Owner": "李四",
                "IdCode": "12125181",
                "Job": "职业",
                "Phone": "15271859303",
                "Domicile": "居住地2",
                "Remark": "备注",
                "EnableChnAlarm": []
            }
		]
    }
}

Response Message

Table 3

ParameterRangeTypeDescription
MsgIdnull
CountintNumber of groups
Result[0, 0,…]arrayResult reference table Table 4

Table 4

ParameterValueDescription
AORT_SUCCESS0Success
AORT_NO_DB-1No database
ORT_DB_EXEC_FAILED-2Database execution failed
AORT_CALC_FEATURE_FAILED-3Feature extraction failed
AORT_CANCELED-4Cancelled
AORT_NO_DISK-5No hard drive
AORT_DISK_ERROR-6Hard disk error
AORT_EXIST-7Existed
AORT_GROUP_INVALID-8Group invalid
AORT_NOT_EXIST-9Does not exist
AORT_MORE_FILE_EXIST-10Record already exists
AORT_SEARCH_ERROR-11Hard disk error
AORT_OVER_MAX_COUNT-12Limit exceeded
AORT_UPDATING_FEATURE-13Updating feature values
AORT_NO_USABLE_IPC-14No IPC available for eigenvalue calculation
AORT_INVALID_PARAM-15Invalid parameter
AORT_INVALID_FORMAT-16Wrong format
AORT_INVALID_RES-17Wrong resolution
AORT_INVALID_MEM-18File too large error
AORT_CREAT_FAILED-19Creation failed
AORT_MD5_NOT_MATCH-20MD5 mismatch
AORT_POS_ERROR-21Location error
AORT_SIZE_ERROR-22Wrong size
AORT_NOT_READY-23Not ready
AORT_INVALID_DB-24Invalid database
AORT_GRP_INVALID_OR_INTERNAL-25The group is invalid or the internal preset group is not allowed to be deleted
AORT_GRP_FACE_OVER_MAX-26The number of faces in the roster group has exceeded the limit
AORT_NO_PERMISSION-27No permission
AORT_GRP_PLATE_OVER_MAX-28The number of license plates in the license plate group has exceeded the limit

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "data": {
        "Count": 2,
        "Result": [
            0,
            0
        ]
    }
}

Error Code

See Response Messages Body and Common error_code for more information.